(function() {
    document.addEventListener('DOMContentLoaded', function() {
        var html = document.documentElement;
        var windowWidth = html.clientWidth;
        html.style.fontSize = windowWidth / 6.4 + 'px';
    }, false);
})();


function stopTouchendPropagationAfterScroll() {
    var locked = false;

    window.addEventListener('touchmove', function(ev) {
        locked || (locked = true, window.addEventListener('touchend', stopTouchendPropagation, true));
    }, true);

    function stopTouchendPropagation(ev) {
        ev.stopPropagation();
        window.removeEventListener('touchend', stopTouchendPropagation, true);
        locked = false;
    }
}

$(document).ready(function() {
    stopTouchendPropagationAfterScroll();

    $(".rst").on('click', function(){
        location.reload();
    });
});